<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<title>Edit</title>  
<link rel="shortcut icon" href="http://localhost/ECP/aspx1/images/EncompassIcon.ico">
<link rel="stylesheet" type="text/css" href="/Public/css/Layout.css">
<link rel="stylesheet" type="text/css" href="/Public/css/Theme.css">
<link rel="stylesheet" type="text/css" href="/Public/css/DefaultUI.css">
<link rel="stylesheet" type="text/css" href="/Public/css/PrintUI.css">
<link rel="stylesheet" type="text/css" href="/Public/css/EChat.css">

<script type="text/javascript" src="/Public/js/JQuery.js"></script>
<script type="text/javascript" src="/Public/js/JQueryUI.js"></script>
<script type="text/javascript" src="/Public/js/SitemapHeader_INC.js"></script>
<script type="text/javascript" src="/Public/js/SitemapHeader_INC.js"></script>
</head>
<body onload="" onresize="" onunload="">
<div id="Header" style="width: 1350px;"> 
<div class="Inner">    
<div class="Logo Right"></div>    
<div class="LabelButton Right" onclick="window.location.href = '__APP__/Login/logout'">退出</div>
<div class="LabelButton Right" onclick="window.open();">帮助</div>
<div class="Label Right"><?=$_SESSION['UserName']?> @ zpl</div>
<a class="Application" href="">首页</a><div class="Label LabelNoPadding">&gt;</div><a class="Application" href="__APP__/TableView/Index/TableName/<?=$TableInfo[0]['Table']?>"><?=$TableInfo[0]['Alias']?></a></div></div>

<div id="Content" class="MenuColapsed" style="height: 568px; min-height: 568px; width: auto;">  
 
<div class="Inner">    
<table class="MainLayout" id="MainLayoutTable" cellspacing="0" cellpadding="0" border="0" style="height: 568px; min-height: 568px;">      
<tbody><tr>        
<td valign="top" id="MainLayout" class="MainLayoutCell" style="max-height: 100%;">
<table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
<thead class="MainLayoutHeader" id="MainLayoutHeader">
<tr>  
<td class="MainLayoutActions" style="height: 1px;">
<div class="ActionBigLabel" id="ColumnSearchLabel"> 
<div style="float: left; margin-top: 3px; margin-right: 3px;"></div></div>
<div class="ActionButtonContainer" title="Add Roles Time Clock Activities"><a id="ActionButtonAddRolesTimeClockActivities" class="ActionButton ActionButtonExcel" href="__APP__/TableEdit/Index/TableName/<?=$TableInfo[0]['Table']?>"><div class="Title">添加 <?=$TableInfo[0]['Alias']?></div></a></div>

<div class="ActionButtonContainer" title="Edit"><a id="ActionButtonEdit" class="ActionButton" href="__APP__/TableEdit/Index/TableName/<?=$TableInfo[0]['Table']?>/KeyID/<?=$TableList[0][$TableInfo[0]['Key']]?>"><div class="Icon Edit"></div><div class="Title IconTitle">编辑</div></a></div>
<div class="ActionButtonContainer" title="Excel"><a id="ActionButtonExcel" class="ActionButton ActionButtonExcel" onclick="ToggleExcelMenu();"><div class="Icon Excel"></div><div class="Title IconTitle">Excel</div></a></div>
</td>
</tr>
</thead>
</table>
<form name="SingleRecordForm" id="SingleRecordForm" action="" onsubmit="return validateForm(this);" method="post"> 
<table name="XMLData" cellpadding="0" cellspacing="0">    
<tbody><tr>     
<td>
<table class="Form" width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>

<?php
$FieldCount = count($TableFieldsInfo);
$FieldIndex = 0;
while($FieldIndex < $FieldCount){
	$FieldB = "";
    $HeaderB = "";

	for($i=0; $i <5; $i++){
		if($FieldIndex < $FieldCount){

			$HeaderB .= "<th class='Parent'>". $TableFieldsInfo[$FieldIndex]['Alias'] . "</th>";
			if($TableFieldsInfo[$j]['Field'] == "TimeUpdated" || $TableFieldsInfo[$j]['Field'] == "TimeCreated"){
				$FieldB .= "<td valign='top'>" . date("Y/m/d h:i A",strtotime($TableList[$i][$TableFieldsInfo[$j]['Field']])) . "</td>";
			}
			else
			{
				$FieldB .= "<td valign='top'>" . $TableList[0][$TableFieldsInfo[$FieldIndex]['Field']] . "</td>";
			}

		 }else{ 
			$HeaderB .= "<th class='Parent' width='100%'>&nbsp;</th>";
			$FieldB .= "<td>&nbsp;</td>";
		 }

        $FieldIndex += 1;
	}
?>
<tr>
<?php echo $HeaderB;?>
<th class="Parent" width="100%">&nbsp;</th>
</tr>
<tr>
<?php echo $FieldB;?>
<td width="100%">&nbsp;</td>
</tr>
<?php

}
?>
</tr>
</tbody>
</table>     
</td>    
</tr>  
</tbody>
</table> 

</form>        
</td>     
</tr>    
</tbody>
</table>  
</div>
</div>


 <div id="Footer" style="width: 1350px;"> 
 <div class="Inner"><div class="Version"><?php echo date("Y-m-d h:i:s"); ?></div>
 <div class="ServerTag">HAOCHAO-PC </div>
 <div class="Version">14.11.01</div>
 <div class="Copyright">Copyright</div>  
 </div>
</div>
<script type="text/javascript"> 
SetLayoutHeight();   
</script>
</body></html>